package script.api.db

import com.alibaba.moco.RedisPoolInstance
import redis.clients.jedis.Jedis
import script.GlobalValues

/**
 * Created by wb-lj240895 on 2016/11/19.
 */
class OrderDaoImpl {
    public static def create(String orderId, Map order){
        Jedis redis = RedisPoolInstance.getRedisClient();
        redis.expire(GlobalValues.TAXI_KEY_ORDER + orderId ,GlobalValues.RIDES_EXPIRE);
        return redis.hmset(GlobalValues.TAXI_KEY_ORDER + orderId ,order)
    }
}
